<?php include "app/views/includes/header.phtml"; ?>


<div class="container">
  <div class="row">
    <table class="zebra">
      <thead>
        <tr class="thead">
          <th>nom</th>
          <th>pays</th> 
          <th>type</th>
          <th>brasserie</th>
          <th>fermentation</th>
          <th>note</th>
          <th>image</th>
        </tr>
      </thead>
      <tbody>      
        <?php if(isset($bieres)) : foreach($bieres as $biere): ?>
        <tr>
          <td><?php echo $biere->get('nom'); ?></td>
          <td><?php echo $biere->get('pays'); ?></td>
          <td><?php echo $biere->get('type')->get('type'); ?></td>
          <td><?php echo $biere->get('brasserie'); ?></td>
          <td><?php echo $biere->get('fermentation')->get('degre'); ?></td>
          <td><?php echo $biere->get('note'); ?></td>
          <td>
            <?php if( $biere->get('image') != "") : ?>
            <img src="<?php echo $biere->get('image'); ?>" height="50" alt="<?php echo $biere->get('nom'); ?>"  />
            <?php endif; ?>
          </td>
        </tr>
        <?php endforeach; endif;?>
      </tbody>

    </table>
  </div>
</div>


<?php include "app/views/includes/footer.phtml"; ?>